import request from "@/utils/request";

export interface dataAddItemType {
    accessToken: boolean,
    account: string,
    audioExtractTimes: null,
    authorities: [],
    certificationBackup: null,
    certificationName: null,
    certificationType: null,
    channel: {
        groupType: string,
        name: string,
        id: number
    },
    channelId: number,
    cityNameAlgorithm: null,
    createTime: number,
    editReviewBackup: null,

    equity: {
        comments: boolean,
        audioBeat: boolean,
        majorCourseOnLineRefund: boolean,
        publishSpecialTopic: boolean,
        createLiveCourse: boolean,
        createBroadcast: boolean,
        talk: boolean,
        login: boolean
    },
    exp: null,
    hasWalletPassword: false,
    id: number,
    level: number,
    mineBackup: {
        mutualFollower: null,
        userFollowId: null
    },
    miniAvatar: null,
    mobile: number,
    mobileAscription: null,
    mobileVerified: number,
    moreBackup: {
        address: null,
        bindQQ: boolean,
        bindSina: boolean,
        bindTiktok: null,
        bindToutiao: null,
        bindWeixin: boolean,
        birthDate: null,
        city: null,
        cityName: null,
        country: null,
        domain: null,
        email: null,
        id: number,
        identityCard: null,
        introduce: null,
        invitationCode: string,
        liveCourseFavorableValue: number,
        majorCourseFavorableValue: number,
        promotionChannelTypeId: number,
        recentRepeatRate: number,
        recentSellerFavorableValue:number,
        recentUseTime: number,
        registerChannelName: string,
        registerSource: string,
        repeatRate: number,
        sellerFavorableValue: number,
        sex: string,
        skillLevel: number,
        skillLevelName: string,
        telphone: null,
        webUrl: string,
        zipCode: null
    },
    needAudit: true,
    needAuditCreator: null,
    needAuditPatchTime: null,
    newUser: boolean,
    nextActivityDisplayTime: null,
    onlinePlanId: null,
    openWechatRemind: number,
    originObject: boolean,
    password: string,
    router:string,
    salesRevenue: boolean,
    selectedAvocation: number,
    slideBackup: [],
    statisticsBackup: {
        browseCount: number,
        consumptionAmount: number,
        couponCount: number,
        dynamicCount: number,
        fansCount: number,
        favoriteCount: number,
        followCount: number,
        followersCount: number,
        interestCount: number,
        inviteVipDays: number,
        inviterCount: number,
        lastLoginTime: number,
        loginTimes: number,
        messageCount: number,
        oaProductCount: number,
        onlineDynamicCount: number,
        orderAmount: number,
        orderCount: number,
        planUserUploadTotalFileSize: number,
        productCount: number,
        promoterCommission: number,
        purseBalance: number,
        salesAmount: number,
        sellCount: number,
        transactionAmount: number,
        userP: null,
        userSkillLevelA1: null,
        userSkillLevelA2: number,
        viewCount: number,
        waitPayCount: number
    },
    status: number,
    supplierTime: null,
    thirdOauthBackup: null,
    token: null,
    type: string,
    updateTime: number,
    useLogBackup: null,
    userAccidPassword: {
        accid: number,
        createTime: number,
        id: number,
        token: string,
        updateTime: number,
        userId: number
    },
    userChangeInfo: null,
    userDepositBackup: null,
    userOnline: number,
    vipBackup: null,
    vipExpireTime: null,
    vipGrade: number,
    vipPayAgeLimit: true,
    walletPassword: null
}

export type dataAddListType = dataAddItemType[];

export const reqAvocationList = () => {
    return request.get<any,dataAddListType>(`http://zsjyyds.online:9000/apis/userCenter/users/me?access_token=6b44a37a-0df2-4a8a-a4b8-7c0cd2d2a222`)
}